package com.wmh.baseservice.common.mybatisplus.enums;

import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author 谢骏
 * @date 2023/8/1 15:24
 * 排序模式
 **/
@AllArgsConstructor
public enum SortMode {
    /** 正序*/
    ASC(0),
    /** 倒叙*/
    DESC(1);
    private final Integer value;

    public Integer getValue() {
        return value;
    }

    public boolean isASC(Integer value) {
        return ASC.value.equals(value);
    }

    public boolean isDesc(Integer value) {
        return DESC.value.equals(value);
    }
}
